package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.HotelRechargeMapper;
import com.zking.ssm.model.HotelRecharge;
import com.zking.ssm.service.IHotelRechargeService;
import com.zking.ssm.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelRechargeServiceImpl implements IHotelRechargeService {

    @Autowired
    private HotelRechargeMapper hotelRechargeMapper;

    public HotelRechargeServiceImpl(){

    }


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelRechargeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelRecharge record) {
        return hotelRechargeMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelRecharge record) {
        return hotelRechargeMapper.insertSelective(record);
    }

    @Override
    public HotelRecharge selectByPrimaryKey(Integer id) {
        return hotelRechargeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelRecharge record) {
        return hotelRechargeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelRecharge record) {
        return hotelRechargeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelRecharge> SelectAll(HotelRecharge hotelRecharge, PageBean pageBean) {
        return hotelRechargeMapper.SelectAll(hotelRecharge);
    }
}
